package com.blog.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.blog.entity.User;

import javax.servlet.http.HttpSession;


/**
 * @author youcong
 * @email ${email}
 * @date 2018-04-21 15:27:01
 */

public interface UserService {

//    public boolean login(User user);

    User login(String email, String password, HttpSession session);

    User register(User user, HttpSession session);

    Page<User> getUsers(Page<User> page, Integer state);

    User updateInfo(User user, HttpSession session);

    boolean forbidden(Integer id);

    User view(Integer id);

    boolean access(Integer id);
}

